package icu.zhhll.util.codec;

import java.security.MessageDigest;

/**
 * SHA-1加密
 *
 * @author zh
 * @date 2023/7/31 16:45
 */
public class ShaUtils extends BaseDigest {


    public static String encrypt(String content) {
        MessageDigest m = getInstance("SHA-1");
        if (m == null) {
            throw new CodecException("不支持SHA-1算法");
        }
        return encrypt(m, content);

    }
}
